//
//  VIZViewController.m
//  VIZNoCrash
//
//  Created by VIZ323 on 07/19/2019.
//  Copyright (c) 2019 VIZ323. All rights reserved.
//

#import "VIZViewController.h"
#import "VIZNoCrash.h"

@interface VIZViewController ()

@end

@implementation VIZViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    
}

- (void)NSArray_Test_ObjectAtIndex {

    NSString *nilStr = nil;
    NSArray *arr = @[@"chenfanfang", nilStr,@"iOS_Dev"];
//    NSObject *object = arr[100];
//    NSLog(@"object = %@",[arr objectAtIndex:101]);
//    NSLog(@"这里是%@",arr);
}

- (void)testAttribute{
    
    NSAttributedString *str = [[NSAttributedString alloc] init];
    [str attributedSubstringFromRange:NSMakeRange(100, 100)];
}

- (void)testMutableAttribute{
    
    NSMutableAttributedString *str = [[NSMutableAttributedString alloc] init];
    [str attributedSubstringFromRange:NSMakeRange(100, 100)];
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    
    
    [self testAttribute];
    
//    [self testMutableAttribute];
//
//    [self NSArray_Test_ObjectAtIndex];
//
//    NSString *str = [UIImage new];
//    [str intValue];
    
}


- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
